# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms.dwd.tab.dwd_tab_barscan_collect_base_dt import jms_dwd__dwd_tab_barscan_collect_base_dt
from jms.dwd.tab.dwd_tab_reback_transfer_express_base import jms_dwd__dwd_tab_reback_transfer_express_base
from jms.dim.dim_network_whole_massage import jms_dim__dim_network_whole_massage


oss__deliver_rollback_rate_sum_dt = BashOperator(
    task_id='oss__deliver_rollback_rate_sum_dt',
    email=['wangmenglei@jtexpress.com','yl_bigdata@yl-scm.com'],
    pool='unlimited_pool',
    bash_command='jms/oss/deliver_rollback_rate_sum_dt/execute.sh',
    execution_timeout=timedelta(minutes=50),
    sla=timedelta(hours=7)
)

oss__deliver_rollback_rate_sum_dt << [
    jms_dwd__dwd_tab_barscan_collect_base_dt ,
    jms_dwd__dwd_tab_reback_transfer_express_base,
    jms_dim__dim_network_whole_massage
]
